package com.yztstudy.Controller;

import com.yztstudy.Service.AdminOrderService;
import com.yztstudy.param.PageParam;
import com.yztstudy.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 管理员管理订单的表示层
 */

@RestController
public class AdminOrderController {

    @Autowired
    private AdminOrderService adminOrderService;


    /**
     * TODO 分页查询订单
     * @param pageParam 分页参数
     * @return
     */
    @GetMapping("/order/list")
    public R orderList(PageParam pageParam)
    {
        return adminOrderService.orderList(pageParam);
    }
}
